<template>
	<view class="contact">
		<image class="img" src="../../static/contact/guanyu.jpg"></image>
		<view class="info">
			<view @click="phone">联系电话:10086(点击拨打)</view>
			<view>地址:南宁</view>
		</view>
		<map class="map" :longitude="longitude" :latitude="latitude" :markers="markers"></map>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				longitude: 108.372834,
				latitude: 22.766730,
				markers: [{
					longitude: 108.372834,
					latitude: 22.766730,
					iconPath: '../../static/mapMarkers.png',
					width: 30,
					height: 30
				}]
			}
		},
		methods: {
			phone() {
				uni.makePhoneCall({
					phoneNumber: '10086'
				})
			}

		}
	}
</script>

<style lang="scss">
	.contact {
		.img {
			width: 750rpx;
			height: 320rpx;
		}

		.info {
			padding: 10rpx 20rpx;
			font-size: 30rpx;

			view {
				line-height: 80rpx;
				border-bottom: 1px solid #eee;
			}
		}

		.map {
			width: 750rpx;
			height: 750rpx;
		}

	}
</style>
